<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>upload</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
	
</head>

<body>
    <form id="form1" action="http://localhost:10051/handling/checkBody/saveWoundPhoto" method="post" enctype="multipart/form-data">
        <!-- encype 是文件转码 -->
        <input type="file" name="file" id="file" value="" />
        <!--<input type="button" value="上传" id="btn" />-->
        嫌疑人id<input type="text" name="suspectId" id ="suspectId">
        <input type="submit" value="上传" id="btn" />
    </form>
</body>
<script type="text/javascript">
/*     $("#btn").click(function () {
        var formData = new FormData();
        formData.append("file", document.getElementById("upfile").files[0]);
		 formData.append("id",1);
		 formData.append("documentid",document.getElementById("documentid").val());
		 console.log(formData)
		 console.log("send")
        $.ajax({
            type: "POST", // 数据提交类型
/*             url: "http://localhost:10051/handling/suspect/savePhoto", // 发送地址 */
            url: "http://localhost:10051/handling/material/addFile", // 发送地址
            data: formData, //发送数据
            async: true, // 是否异步
            processData: false, //processData 默认为false，当设置为true的时候,jquery ajax 提交的时候不会序列化 data，而是直接使用data
            contentType: false //
        });
    }); */
</script>

</html>